package com.example.clients;

import com.example.pojo.Tasks;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "ms-service", url = "http://localhost:8088")
public interface MsClient {

    @GetMapping("/tasks/findProducs")
    List<Tasks> findProducs();

    @GetMapping("/orders/addOrders")
    void addOrders(@RequestParam("productsid") Integer productsid, @RequestParam("uid") Integer uid);

    @GetMapping("/orders/ok")
    String Ok();
}
